<div class="dawn-header">
    <div class="dawn-breadcrumb">
		 <span class="layui-breadcrumb">
             <a href="javascript:;">系统管理</a>
             <a><cite>角色管理</cite></a>
         </span>
    </div>
</div>
<div class="dawn-content">
    <div class="layui-row layui-form layui-form-pane">
        <div class="layui-inline">
            <label class="layui-form-label">角色名称</label>
            <div class="layui-inline">
                <input class="layui-input" autocomplete="off" id="roleName"
                       placeholder="角色名称/编码" autocomplete="off">
            </div>
        </div>
        <div class="layui-inline dawn-search-left">
            <button class="layui-btn" id="search"><i class="fa fa-search"></i> 搜索</button>
            <button class="layui-btn" id="reset"><i class="fa fa-trash"></i> 重置</button>
        </div>
    </div>
    <div class="layui-row dawn-table">
        <!-- 表格  -->
        <table id="table" lay-filter="table">
        </table>
    </div>
</div>
<!-- 工具条 -->
<script type="text/html" id="tableToolBar">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm" lay-event="add">添加
        </button>
    </div>
</script>
<!-- 表格内按钮 -->
<script type="text/html" id="tableTool">
    <a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="delete">删除</a>
    <a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="setAuthority">权限分配</a>
</script>
<script id="info" type="text/html">
    <div class="layui-form layui-form-pane dawn-form" lay-filter="info">
        <input type="hidden"  name="id">
        <div class="layui-form-item">
            <label class="layui-form-label dawn-form-label">角色名称</label>
            <div class="layui-input-block">
                <input name="name" lay-verify="required" autocomplete="off"
                       placeholder="请输入角色名称" class="layui-input"
                       type="text">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label dawn-form-label">上级名称</label>
            <div class="layui-input-block">
                <input id="pName" lay-verify="required" autocomplete="off"
                       placeholder="请输入上级名称" class="layui-input" readonly
                       type="text">
                <input type="hidden" name="pid">
                <div id="pNameContent" class="dawn-form-ztree">
                    <ul id="pNameTree" class="ztree tree-box"></ul>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label dawn-form-label">角色编码</label>
            <div class="layui-input-block">
                <input name="code" lay-verify="required" autocomplete="off"
                       placeholder="请输入角色编码" class="layui-input"
                       type="text">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label dawn-form-label">角色排序</label>
            <div class="layui-input-block">
                <input name="num" lay-verify="required" autocomplete="off"
                       placeholder="请输入角色排序" class="layui-input"
                       type="number">
            </div>
        </div>
        <div class="layui-form-item" style="text-align: right;">
            <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="save">保存</button>
        </div>
    </div>
</script>
<script id="assign" type="text/html">
    <div>
        <div class="row" style="position: absolute; top:0; left: 0; right: 0; bottom: 40px; overflow: auto;">
            <div class="ibox-content">
                <ul id="zTree" class="ztree"></ul>
            </div>
        </div>
        <div style="position: absolute;bottom: 2px;left: 0;right: 0;height: 40px;line-height:40px;border-top: 1px solid #eee;">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div style="float: right;margin-right: 10px;">
                        <button class="layui-btn layui-btn-sm" type="button" id="btn_save">
                            保存
                        </button>
                        <button class="layui-btn layui-btn-sm layui-btn-danger" type="button" id="btn_close">
                            关闭
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</script>
<script src="${ctxPath}/modular/system/role/role.js?v=${app.version}"></script>